package com.badibadi.mail;

import com.badibadi.mytools.Utils;
import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.layout;
import com.badibadi.uniclubber.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
/**
 * 第8步
 * 答方：回答了问题
 * 问方：在规定时间内没有给问方响应答方的回答：（逾期了）（将自动打款到对方账上）
 * @author Administrator
 *
 */
		
public class Mail30_31Activity extends Mail245Activity {

	AlertDialog al_sheding;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void DongTaiPeiZhi() {
		// TODO Auto-generated method stub
		TextView title_mail=(TextView)this.findViewById(R.id.title_mail);
		title_mail.setText(getResources().getString(R.string.wx_reply_zhanneixin));
		//提示
		TextView tishi=(TextView) this.findViewById(R.id.tishi);
		tishi.setText(getResources().getString(R.string.wx_yi_yuqi_kuohao));
		tishi.setVisibility(View.VISIBLE);
		if(rank.equals("answerer"))//答方
		{
			this.findViewById(R.id.delete).setVisibility(View.VISIBLE);
			Button shedingzhixunfei=(Button)this.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_yuqi));
			
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					LayoutInflater inflater=LayoutInflater.from(Mail30_31Activity.this);
		            View view=inflater.inflate(R.layout.youyuduifangzaiqianxianneiwei, null);
                     //退款工作日
		            TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
		            refund_time.setText(""+payUserContactShow1Model.getRefund_time());
//		            et_feiyong.setText();
		            //支付宝手续费
		            TextView alipay_charge=(TextView)view.findViewById(R.id.alipay_charge);
		            alipay_charge.setText(payUserContactShow1Model.getAlipay_charge());
		            //达人
		            TextView expert_charge=(TextView)view.findViewById(R.id.expert_charge);
		            expert_charge.setText(payUserContactShow1Model.getExpert_charge());
		            //一般用户
		            TextView member_charge=(TextView)view.findViewById(R.id.member_charge);
		            member_charge.setText(payUserContactShow1Model.getMember_charge());
		         
		            
					al_sheding=new AlertDialog.Builder(Mail30_31Activity.this).setView(view).show();
				}
			});
			shedingzhixunfei.setVisibility(View.VISIBLE);
		}else//问方
		{
			this.findViewById(R.id.delete).setVisibility(View.VISIBLE);
			Button shedingzhixunfei=(Button)this.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.wx_yuqi));
shedingzhixunfei.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					//youyu nizai
					
					LayoutInflater inflater=LayoutInflater.from(Mail30_31Activity.this);
		            View view=inflater.inflate(R.layout.youyuninzaiguidingshi, null);
                     //退款工作日
		            TextView refund_time=(TextView)view.findViewById(R.id.refund_time);
		            refund_time.setText(""+payUserContactShow1Model.getRefund_time());
//		            et_feiyong.setText();
		            
		         
		            
					al_sheding=new AlertDialog.Builder(Mail30_31Activity.this).setView(view).show();
				}
			});
			shedingzhixunfei.setVisibility(View.VISIBLE);

		}
		
		
		
	}


}
